package com.ruoyi.ring.domain;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户设置对象 az_ring_user_setting
 * 
 * @author liuwp
 * @date 2025-09-02
 */
@Data
public class RingUserSetting extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 步数 */
    @Excel(name = "步数")
    private Integer steps;

    /** 卡路里 */
    @Excel(name = "卡路里")
    private Integer calories;

    /** 运动时间 */
    @Excel(name = "运动时间")
    private Integer sportTime;

    /** 0-6,-1全局设置 */
    @Excel(name = "0-6,-1全局设置")
    private Integer week;

    /** 单位格式，1：公制，2：英制 */
    @Excel(name = "单位格式，1：公制，2：英制")
    private Integer unitFormat;

    /** 温度单位，1，摄氏，2，华氏 */
    @Excel(name = "温度单位，1，摄氏，2，华氏")
    private Integer tempUnit;

    /** hrv测量间隔 */
    @Excel(name = "hrv测量间隔")
    private Integer hrvInterval;

    /** 低电量提示 */
    @Excel(name = "低电量提示")
    private Integer lowpowPrompt;

    /** 睡眠时血氧 */
    @Excel(name = "睡眠时血氧")
    private Integer sleepBo;

    /** 运动心率预警 */
    @Excel(name = "运动心率预警")
    private Integer sportHrate;

    /** 生理期 */
    @Excel(name = "生理期")
    private Integer physiology;


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("steps", getSteps())
            .append("calories", getCalories())
            .append("sportTime", getSportTime())
            .append("week", getWeek())
            .append("unitFormat", getUnitFormat())
            .append("tempUnit", getTempUnit())
            .append("hrvInterval", getHrvInterval())
            .append("lowpowPrompt", getLowpowPrompt())
            .append("sleepBo", getSleepBo())
            .append("sportHrate", getSportHrate())
            .append("physiology", getPhysiology())
            .toString();
    }
}
